cmake_minimum_required(VERSION 3.5)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

add_library(
        cantest
        SHARED
        ./cantest.cpp
        ./open/OpenCan.cpp
        ./comm/CommunityCan.cpp
)
link_directories(
        ./so/
)
target_link_libraries(
        cantest
        PRIVATE
        pthread
        Qt5::Widgets
        libECanVci.so.1
        libusb.so
        libusb-1.0.so
)
